package test02;

public class MainTest01 {
    public static void main(String[] args) {
        check(EnglandPeople.class);
    }
    public static void check(Class<?> clazz) {
        boolean bl = clazz.isAnnotationPresent(HelloWorldAnnotation.class);
        if (!bl) {
            System.out.println("不存在注解");
            return;
        }
        HelloWorldAnnotation annotation = clazz.getAnnotation(HelloWorldAnnotation.class);
        String val = annotation.content();
        System.out.println("您国家的问候语"+val);
    }
}
